﻿using System.Windows;
using X.WPF.Controls.Models;

namespace X.WPF.Controls.EventArgs.Marker3DCanvasArgs
{
    /// <summary>
    /// 标记拖拽完成事件参数
    /// </summary>
    public class Marker3DCanvasDragCompletedEventArgs : RoutedEventArgs
    {

        /// <summary>
        /// 创建标记拖拽完成事件参数构造器
        /// </summary>
        public Marker3DCanvasDragCompletedEventArgs(RoutedEvent routedEvent, object source, Marker3DMarker marker)
            : base(routedEvent, source)
        {
            this.Marker = marker;
            this.IsCancel = false;
        }

        /// <summary>
        /// 标记
        /// </summary>
        public Marker3DMarker Marker { get; set; }

        /// <summary>
        /// 是否取消
        /// </summary>
        public bool IsCancel { get; set; }
    }
}